﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8;" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/inform.css">
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.0.min.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/Calendar3.js" ></script>
</head>
<script type="text/javascript">
	$(function(){
	  $(document).keypress(function(e) { 
    // 回车键事件 
       if(e.which == 13) { 
			$('#submitkey').trigger("click");
       } 
      }); 
		$('#submitkey').click(function(){
			$('#search').submit();

		});
		
	})
</script>
<body><div class="main_wrap">
<div class="zt" id="zt">
	<include file="Public/leftMenu" />
	
	<div class="yinfor">
		<div class="center_wrap">
			<div class="center_title"><h1>礼物管理</h1></div>
			<p class="lr_title">送出的礼物</p>
			
			<form method='get' id="search" name="search" action="{:U('index')}">
			<table cellspacing=0 cellpadding=0 class="gift_search">
					<tr style="height:25px">
					<td style="width:280px;">从<input name="start_date" type="text" style="border:1px solid #ddd;" id="start_date" size="10" value="{$startTime}" maxlength="10" onclick="new Calendar().show(this);"   readonly="readonly" /><font style="font-size:12px;">&nbsp至&nbsp</font>
							<input name="end_date" type="text" id="end_date" size="10" style="border:1px solid #ddd;" value="{$endTime}" maxlength="10" onclick="new Calendar().show(this);"   readonly="readonly" /></td>
					<td style="width: 240px;">收礼人账号：<input name="recieverId" style="border:1px solid #ddd;width:90px;" id="recieverId" type="text" value="{$recieverId}" /></td>
					<td style="width: 210px;">礼物名称：<input name="giftname" id="giftname" style="border:1px solid #ddd;width:90px;" value="{$giftName}" type="text" /></td>
					</tr>
					<tr style="height:35px"><td colspan='3'>房间 ID：<input type="text"  style="border:1px solid #ddd;"  value="{$roomId}"  id="roomId" name="roomId" style="width: 90px""/>&nbsp&nbsp<input id="submitkey" type="button" value="查询" style="background-color:#73909E;border:none;color:#fff;"/></td></tr>

			</table>
			</form>
			<table cellspacing=0 cellpadding=0  class="gift_detail">
				<tr class="detailtr"><td  style="border-left:1px solid #C8C8C8;"><strong>礼物名称</strong></td><td ><strong>收礼人账号</strong></td><td><strong>数量</strong></td><td><strong>礼品金额</strong></td><td><strong>房间ID</strong></td><td><strong>时间</strong></td></tr>

				<empty name="data">
				<tr height='33'><td colspan=6>无记录</td></tr>
				</empty>
				<volist name='data' id='vo'>

				<tr height='33'><td><?php if(empty($vo['cgiftname'])){echo "---";}?>{$vo.cgiftname}</td><td>{$vo.nbuddyid}</td><td>{$vo.ncount}</td><td>{$vo.nmoney}</td><td>{$vo.nroomid}</td><td><?php echo date("Y-m-d h:i:s", strtotime($vo['dtime']));?></td></tr>

				</volist>

			</table>
			{$list}
				
		</div>


	</div>
</div>
</div>
</body>
</html>